package com.lrkj.back.service.impl;

import java.util.List;
import java.util.Map;

import com.lrkj.back.mapper.ZsQingxiMingxiMapper;
import com.lrkj.back.entity.ZsQingxiMingxi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lrkj.back.service.ZsQingxiMingxiService;
import cn.com.cbons.mamisay.parent.db.api.DBInterface;
import cn.com.cbons.mamisay.parent.exception.DBException;
import cn.com.cbons.mamisay.parent.service.base.ParentServiceImpl;

@Transactional
@Service
public class ZsQingxiMingxiServiceImpl extends ParentServiceImpl<ZsQingxiMingxi> implements ZsQingxiMingxiService {
    @Autowired
    private ZsQingxiMingxiMapper zsQingxiMingxiMapper;

    @Override
    protected DBInterface<ZsQingxiMingxi> getDao() throws DBException {
        // TODO Auto-generated method stub
        return zsQingxiMingxiMapper;
    }

    public List<ZsQingxiMingxi> findAllQingxiMingxi(Map<String, Object> map) throws DBException {
        return zsQingxiMingxiMapper.findAllQingxiMingxi(map);
    }

    public int deleteByQingxiLiushui(String qingxiLiushui) throws DBException {
        return zsQingxiMingxiMapper.deleteByQingxiLiushui(qingxiLiushui);
    }

    @Override
    public int insertBatch(List<ZsQingxiMingxi> list) throws DBException {
        return zsQingxiMingxiMapper.insertBatch(list);
    }

    @Override
    public int updateBatch(List<ZsQingxiMingxi> list) throws DBException {
        return zsQingxiMingxiMapper.updateBatch(list);
    }

}
